package com.xdb.sqlparser.ast.statement;

import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.ast.AbstractSQLObjectImpl;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLAlterTableRenameColumn extends AbstractSQLObjectImpl implements SQLAlterTableItem {

	private SQLName column;
	private SQLName to;

	public SQLAlterTableRenameColumn() {

	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, column);
			acceptChild(visitor, to);
		}
		visitor.endVisit(this);
	}

	public SQLName getColumn() {
		return column;
	}

	public void setColumn(SQLName column) {
		this.column = column;
	}

	public SQLName getTo() {
		return to;
	}

	public void setTo(SQLName to) {
		this.to = to;
	}

}
